
<%@mytestobj= Ualia.find_by_iscurrent(true) %>

<h2><%= @article.title %></h2>
<%=javascript_include_tag 'prototype'%>
<% if @article.category %>
  <p class="category">
    Category: '<%= link_to @article.category.name, 
                     category_articles_path(@article.category) %>'
  </p>
<% end %>

<p>
  <%= @article.created_at.to_s(:short) %><br />
    <% @article.photos.each do |photo| %>
     <br /><%= image_tag photo.public_filename, :id => 'photo' %><br />
     <%= photo.body%><br />
    <% end %>
  <%= textilize(@article.body) %><br />
</p>
<h3>Comments</h3>




<% @article.comments.each do |comment| -%>
<div class="comment">
<p class="commentfrom">At <%= comment.created_at.to_s(:short) %>,
<%= comment.aliasn %> said:</p>

<p class="commentbody"><%=h comment.body %></p>
</div>
<% end -%>


<p><%= link_to 'Back to article list', :controller=>'articles1' %></p>


